<html>
    <head>
        <title> Offline Review </title>
    </head>
    <body>
    <h><b><u><font size ="8"><center> Paper Review </h></u></font></center>
            <div align="left">
                <?php
                $conf_id = $_GET['conference_id'];
                $paper = $_GET['paper_id'];
                ?>
                <form  method ="post" action ="insert.php?conference_id=<?php echo $conf_id ?>&paper_id=<?php echo $paper ?>">
                    <textarea rows="7" cols="40" name="comments" ></textarea>
                    <input type="submit" name="submit"/>
            </div>
            <select name="rate" id="rate" method="post" >
                <option value="">Rating criteria</option>

                <?php
                //<input type ="text" name ="comments" value="" style="width:20%;" method ="get">
                //<input type="submit" name="submit" method="get" value="Submit" action ="insert.php"/> 
                // Opens connection with the database
                $conn = mysql_connect('localhost', 'root', '') or die(mysql_error());
                mysql_select_db("mydb", $conn) or die(mysql_error());

                include "statics.php";
                // Selecting all the rating criteria to appear in the drop down list
                $all_criteria = rsSelect("Rate_id", "conference_rating_criteria", array("conference_id=", $conf_id));
                if (!is_string($all_criteria)) {
                    $Rating_Criteria = "";
                    while ($row = mysql_fetch_assoc($all_criteria)) {
                        $rsCriteriaName = rsSelect("criteria_type", "rating_criteria", array('rate_id=', $row['Rate_id']));
                        if (!is_string($rsCriteriaName)) {
                            $rowCriteriaName = mysql_fetch_assoc($rsCriteriaName);
                            $Rating_Criteria .= "<option value={$row['Rate_id']}>{$rowCriteriaName['criteria_type']}</option>";
                        }
                        else
                            echo $rsCriteriaName;
                    }
                    echo $Rating_Criteria;
                }
                else
                    echo $all_criteria;
                ?>
                <p>
                    </br>
                    <input type="radio" name="type" value="1"/>1<br>
                    <input type="radio" name="type" value="2"/> 2<br>
                    <input type="radio" name="type" value="3"/> 3<br>
                    <input type="radio" name="type" value="4"  /> 4<br>
                    <input type="radio" name="type" value="5"/> 5<br>
                    <input type ="submit" name ="done" method="get" value ="Done" action ="insert.php"/>
                </p>



                </body>
                    </form>      



